
/**
 * Record pre-delete trigger.
 * Validate the record to be deleted.
 * When false is returned the record will not be deleted in the database.
 * When an exception is thrown the record will also not be deleted in the database but it will be added to databaseManager.getFailedRecords(),
 * the thrown exception can be retrieved via record.exception.getValue().
 *
 * @param {JSRecord<db:/infocom/prod_marcas>} record record that will be deleted
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"1496D1FB-59D7-402C-8EAF-BC02639CA05E"}
 */
function onRecordDelete(record) {
	if (prod_marcas_to_productos.getSize() > 0)
		return false
	return true
}
